package cn.pn.project.client.schedule;

import cn.pn.project.client.schedule.follback.SeatCommodityFallBack;
import cn.pn.project.pojo.schedule.Seatcommodity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.sql.SQLException;
import java.util.List;

@FeignClient(name="pn-scheduler-provider",fallback = SeatCommodityFallBack.class)
public interface SeatcommodityFeign {
    /**
     * 根据skuid查询座位信息
     * @param skuId
     * @return
     * @throws SQLException
     */
    @RequestMapping(value = "/getCommodityBySkuId",method = RequestMethod.POST)
    public List<Seatcommodity> getCommodityBySkuId(@RequestParam("skuId")String skuId) throws SQLException;
}
